package edu.sctu.practice.class01.wangxiaoqiang.assgin2;

/**
 * Created by admin on 2015/10/8.
 */
public class Circle {

    public double radius;
    static int numOfObjects;


    public Circle(double radius) {
        this.radius = radius;
        numOfObjects++;
    }

    public double getArea() {
        double areaOfCircle;
        double Pi = 3.14;
        areaOfCircle = Pi * radius * radius;
        return areaOfCircle;
    }

    public static void getNumOfObjects() {
        System.out.println("次数："+numOfObjects);
    }
}
